import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static boolean find(int[] array){
        int count = 0;
        for(int i = 0;i < array.length;i++){
            ;
            if(array[i] % 2 != 0){
                count++;
                if(count == 3){
                    return true;
                }
            }else{
                count = 0;
            }
        }
        return false;
    }

    public static void main(String[] args) {
        int[] array = {2,6,4,1};
        System.out.println(find(array));
    }
}